package com.tzbank.wisdom.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_access_bank_info")
@Table(appliesTo = "mb_access_bank_info", comment = "超级网银银行信息表")
public class AccessBankInfo implements Serializable {

	private static final long serialVersionUID = 268970655964548268L;

	@ApiModelProperty(value = "自增主键")
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, name = "auto_id", columnDefinition = "int(11) NOT NULL COMMENT '自增Id'")
	private Integer autoId;
	
	@ApiModelProperty(value = "超级网银银行ID")
	@Column(name = "bank_id", columnDefinition = "varchar(20)  NOT NULL COMMENT '超级网银银行ID'")
	private String bankId;

	@ApiModelProperty(value = "银行名")
	@Column(name = "bank_name", columnDefinition = "varchar(50)  NOT NULL COMMENT '银行名'")
	private String bankName;

	@ApiModelProperty(value = "银行别名")
	@Column(name = "bank_aliasname", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '银行别名'")
	private String bankAliasname;

	@ApiModelProperty(value = "银行编号")
	@Column(name = "bank_ctgycode", columnDefinition = "varchar(20) DEFAULT NULL COMMENT '银行编号'")
	private String bankCtgycode;


}
